#include<iostream>
using namespace std;
class A
{
public:
	A(int _a = 1)
	{
		cout << _a << endl;
	}
	~A()
	{}
private:
	int _a;
};
//int main()
//{
//	//int* p = new int(3);
//	int* p1 = new int[10] {1, 2, 3, 4, 5};
//	delete[] p1;
//	return 0;
//}

int main()
{
	A* p1 = new A;
	//p1->~A();

	new(p1)A(10);

	return 0;
}